/**
 * AlbumDto.java
 * com.sftj.web.fansorby.dto
 * Copyright (c) 2018, 北京科技有限公司版权所有.
*/

package com.sftz.modules.minapp.activityRecord.dto;

import java.util.Date;

import lombok.Data;

import com.sftz.assets.enums.FileSizeEnum;
import com.uxuexi.core.common.util.Util;

/**
 * 
 * @author   赵硕
 * @Date	 2018年8月30日
 */
@Data
public class MyteachActivityDto {

	private Integer id;

	private Integer answerId;

	private String courseName;

	private String title;

	private Integer passScore;

	private String score = "0";

	private String acScore = "0";

	private String approver;

	private Date finishTime;

	private Date endDate;

	private Date handleDate;

	private Integer status;

	private Integer uploadNum = 0;//上传文件个数

	private Integer userId;

	private Integer activityId;

	private Integer courseId;

	private Integer courseStruId;

	private Integer fileNum = 0;

	private String fileSize;

	private String fileSizeS;

	private Date postDate;//延期时间

	public String getfileSize() {
		fileSizeS = "未设置";
		if (!Util.isEmpty(this.fileSize)) {
			FileSizeEnum[] values = FileSizeEnum.values();
			for (FileSizeEnum fileSizeEnum : values) {
				if (fileSizeEnum.key().equals(this.fileSize)) {
					fileSizeS = fileSizeEnum.value();
				}
			}
		}
		return fileSizeS;
	}

}
